import java.util.Scanner;

//天干地支
public class code7 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        String[] str1 = {"geng", "xin", "ren", "gui", "jia", "yi", "bing", "ding", "wu", "ji"};
        String[] str2 = {"shen", "you", "xu", "hai","zi", "chou", "yin", "mao", "chen", "si", "wu", "wei"};

        System.out.println(str1[n%10]+str2[n%12]);
    }
}
